]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Check sassc errors when generating stylesheets
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 5 Sep 2021 22:38:54 +0000 (00:38 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 7 Sep 2021 12:47:42 +0000 (12:47 +0000)
We currently just call sassc, but don't check its return value. That
means as long as sassc is available, the script (and therefore the
newly added dist CI job) will succeed.

Make sure we fail on failure.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1974>

meson/generate-stylesheets.py

index 35242c68fc8991dffc9411934ed19b4e947f0110..bd6b641b8ec57441b54ddf4d4bea147b7f311de5 100644 (file)
@@ -16,4 +16,4 @@ for stylesheet in stylesheets:
     stylesheet_path = PurePath(stylesheet)
     src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss'))
     dst = PurePath(distroot, stylesheet_path)
-    subprocess.call(['sassc', '-a', src, dst])
+    subprocess.run(['sassc', '-a', src, dst], check=True)